package org.shoukaiseki.aliyun.oss.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;



/** 文件信息
 * org.shoukaiseki.aliyun.oss.domain.DocumentInfo
 * <br>
 *
 * @author shoukaiseki ブログ http://www.shoukaiseki.top/<br> E-メール jiang28555@Gmail.com<br>
 * @date 2020-12-11 13:03:01<br>
 */
public class DocumentInfo {

    /** 主键 */
    private Long wbDocumentId;

    /** 业务对应的id */
    private Long ownerId;

    /** 业务名称[为空字符则表示属于用户组,其它基本以表名为业务对下] */
    private String ownerName;

    /** 文件显示名称 */
    private String filename;

    /** oss存储的名称 */
    private String ossname;

    /** 文件访问地址 */
    private String url;

    /** 文件类别，如果一个业务中存在多种附件类型，则根据该字段区分 */
    private String type;

    /** 排序 */
    private Long sort;

    /** 状态（0正常 1阿里云上传空间生成） */
    private Integer status;

    /** 删除标志（0代表存在 1代表删除） */
    private Integer delFlag;

    public void setWbDocumentId(Long wbDocumentId)
    {
        this.wbDocumentId = wbDocumentId;
    }

    public Long getWbDocumentId()
    {
        return wbDocumentId;
    }
    public void setOwnerId(Long ownerId)
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId()
    {
        return ownerId;
    }
    public void setOwnerName(String ownerName)
    {
        this.ownerName = ownerName;
    }

    public String getOwnerName()
    {
        return ownerName;
    }
    public void setFilename(String filename)
    {
        this.filename = filename;
    }

    public String getFilename()
    {
        return filename;
    }
    public void setOssname(String ossname)
    {
        this.ossname = ossname;
    }

    public String getOssname()
    {
        return ossname;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("wbDocumentId", getWbDocumentId())
                .append("ownerId", getOwnerId())
                .append("ownerName", getOwnerName())
                .append("filename", getFilename())
                .append("ossname", getOssname())
                .append("url", getUrl())
                .append("type", getType())
                .append("sort", getSort())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
